package com.webbei.Backstage.action;

import java.io.IOException;

import org.apache.struts2.ServletActionContext;

import com.webbei.Backstage.service.BackstateSer;

public class ShareTheReviewCustomAction {
	private BackstateSer bao;
	public String Array;
	public String execute(){
		System.out.println("sasa:"+Array);
		String[] t=Array.split(",");
		for(String str:t){
			Long customid=Long.parseLong(str.trim());
			int j=bao.updateCustomShareByCustomId(customid);
		}
		try {
			ServletActionContext.getResponse().getWriter().write("success");
			ServletActionContext.getResponse().setContentType("text/html");
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		
		return null;
	}
	public BackstateSer getBao() {
		return bao;
	}
	public void setBao(BackstateSer bao) {
		this.bao = bao;
	}
	public String getArray() {
		return Array;
	}
	public void setArray(String array) {
		Array = array;
	}
	
}
